package com.gym.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gym.pojo.UserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserInfoMapper extends BaseMapper<UserInfo> {
//    //插入
////    int insert(UserInfo userInfo);
////    //修改
////    int update(UserInfo userInfo);
////    //删除
////    int delete(Integer userId);
    //根据用户名和密码查询
    UserInfo queryByUsernameAndPassword(@Param("userName") String username, @Param("passWord") String password);
////    //查询所有
////    List<UserInfo> getQueryAll();
////    //根据名字查询
////    UserInfo queryByName(@Param("userName") String username);
    //模糊查询并分页
//    List<UserInfo> getAllUserByUserNamePage(@Param("userName") String userName,@Param("pageNum") Integer pageNum,@Param("limit") Integer limit);

}
